module Documenti::RiepilogoAllegatiHelper
  def allegato_allegato_ref_id_form_column(record, options)
    select_options = if record.allegato_ref_type
                       record.allegato_ref_type.constantize.all.map {|r| [r.to_label, r.id]}
                     else
                       []
                     end
    AS_select(options, select_options)
  end
end
